<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://doc.hyperf.io
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

namespace App\Request\Api\User;


use App\Request\FormRequest;

class LoginRequest extends FormRequest
{
    public function rules(): array
    {
        return [
            'nick_name' => 'required|string|exists:users,nick_name',
            'password'  => 'required|min:6|alpha_dash',
        ];
    }
}
